# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ipobfuscator
pkgver=27.f005262
pkgrel=1
pkgdesc='A simple tool to convert the IP to a DWORD IP.'
groups=('blackarch' 'blackarch-misc')
arch=('x86_64' 'armv6h' 'arvm7h' 'aarch64')
url='https://github.com/OsandaMalith/IPObfuscator'
license=('custom:unknown')
depends=()
makedepends=('git')
source=("$pkgname::git+https://github.com/OsandaMalith/IPObfuscator.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  gcc ip.c -o $pkgname
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

